using WinFormium;

namespace MiMiPC
{
    internal static class Program
    {
        [STAThread]
        static void Main()
        {
            var builder = WinFormiumApp.CreateBuilder();
            builder.UseWinFormiumApp<MainForm>();
            builder.UseEmbeddedBrowser();
            builder.UseSingleApplicationInstanceMode(handler =>
            {
                var retval = MessageBox.Show($"已经有一个实例在运行了:{handler.ProcessId}��\r\n�Ƿ���������壿", "����ģʽ������", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (retval == DialogResult.Yes)
                {
                    handler.ActiveRunningInstance();
                }
            });
            builder.UseDevToolsMenu();
            var app = builder.Build();
            app.Run();
        }
    }
}